/**
 * File: VelvetController.java
 * Created by: mhaimel
 * Created on: 23 Jul 2009
 * CVS:  $Id: VelvetController.java,v 1.1 2009/08/05 15:16:13 mhaimel Exp $
 */
package uk.ac.ebi.curtain.controller.velvet;

import uk.ac.ebi.curtain.controller.ParallelController;
import uk.ac.ebi.curtain.controller.SimpleReport;
import uk.ac.ebi.curtain.management.IControllerReport;
import uk.ac.ebi.curtain.management.InterceptorInfo;
import uk.ac.ebi.curtain.processor.velvet.impl.VelvetProcessor;

/**
 * @author mhaimel
 *
 */
public class VelvetController extends ParallelController<VelvetInputBean, VelvetOutputBean, VelvetProcessor> {

	@Override
	protected VelvetProcessor buildJob(VelvetInputBean input,InterceptorInfo info) {
		return getContext().getInjector().getInstance(VelvetProcessor.class);
	}

	@Override
	protected IControllerReport getReturnCall() {
		return new SimpleReport("Finished");
	}
}
